package com.xnf.api.behavior;

import com.xnf.model.behavior.dtos.UnLikesBehaviorDto;
import com.xnf.model.behavior.pojos.ApUnlikesBehavior;
import com.xnf.model.common.dtos.ResponseResult;

/**
 * Created by xnf on 2022/3/8.
 */
public interface ApUnlikesBehaviorControllerApi {

    /**
     * 保存不喜欢行为
     * @param dto
     * @return
     */
    ResponseResult unlike(UnLikesBehaviorDto dto);

    /**
     * 根据行为实体id和文章id查询不喜欢行为
     * @param entryId
     * @param articleId
     * @return
     */
    public ApUnlikesBehavior findUnLikeByArticleIdAndEntryId(Integer entryId, Long articleId);
}
